package com.xnyzc.lhy.mis.mapper.activity;

import com.xnyzc.lhy.mis.entity.activity.OaSysActivityReward;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnyzc.lhy.mis.entity.param.activity.DriverOnLineTimeParam;
import com.xnyzc.lhy.mis.entity.result.activity.ActivityRewardResult;
import com.xnyzc.lhy.mis.entity.result.activity.DriverOnLineTimeResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 活动结果 Mapper 接口
 * </p>
 *
 * @author haoyfa
 * @since 2019-12-16
 */
public interface OaSysActivityRewardMapper extends BaseMapper<OaSysActivityReward> {

    /**
     * 获取活动奖励信息
     * @param periodId
     * @return
     */
    List<ActivityRewardResult> queryActivityRewardResultList(long periodId);

    /**
     * 统计司机在线时长
     * 某个日期段内，某个时间段内，某几个城市内
     * @param driverOnLineTimeParam
     * @return
     */
    List<DriverOnLineTimeResult> getDriverOnLineTimeSum(DriverOnLineTimeParam driverOnLineTimeParam);

    /**
     * 获取司机订单数合计和订单金额合计
     * @return
     */
    List<DriverOnLineTimeResult> getDriverOrderSum(DriverOnLineTimeParam driverOnLineTimeParam);

}
